{include file="public/header" select="1" /}
<style>
    .title span::-webkit-scrollbar {
        display: none;
    }
</style>
<body>
<div class="title bgc">
    <i class="layui-icon layui-icon-left" onclick="goBack()"></i>
    <span style="width: 60%;overflow: auto;text-align: center;white-space:nowrap;">{$title}</span>
</div>

<ul class="product-list tpl_list"></ul>

<script id="template" type="text/html">
    {{# for(var i=0;i<d.data.length ;i++){ }}
    <li class="bgc">
        <a href="{:url('product/details')}?id={{d.data[i].id}}">
            <div>
                <img src="{{d.data[i].icon}}" alt=""/>
            </div>
            <p>{{d.data[i].title}}</p>
            <p>￥{{d.data[i].price}} </p>
        </a>
    </li>
    {{# } }}
</script>
</body>
{include file="public/footer" select="1" /}
<script>

    $(function () {
        var end = '{$keyword}' ? '没有找到相关商品' : '没有更多了';
        getFlow(1, "{:url('product/getList')}?cate_1={$cate_1}&keyword={$keyword}", 'template', end);
    })
</script>